package com.ddw.meedeeuh.shared.io;

import java.io.File;

public abstract class SourceFolderFactory {

	public static SourceFolder create(String path) {
		return new SourceFolderImpl(new File(path));
	}

	public static SourceFolder create(File path) {
		return new SourceFolderImpl(path);
	}

	private static class SourceFolderImpl implements SourceFolder {

		private final File folder;

		public SourceFolderImpl(File folder) {
			this.folder = folder;
		}

		@Override
		public File getInstance() {
			return this.folder;
		}

	}

}
